package dao;

import java.sql.SQLException;

import entity.User;

public interface UserDao {
	
	/**
	 * 
	 * @param 用户名
	 * @param 密码
	 * @return	用户实体
	 */
	public User loginByNameAndPwd(String qqnum,String pwd) throws SQLException;
	
	/**
	 * 
	 * @param 用户
	 * @param 密码
	 * @return 注册成功返回1
	 * @throws SQLException
	 */
	public int Register(String qqnum,String pwd,String nicheng) throws SQLException;
	
	public User queryUserById(int user_id)throws SQLException;
}
